<h1>Editing member</h1>

<%= start_form_tag :action => 'update', :id => @member %>
  <%= render :partial => 'form' %>

<h3>Characters</h3>
<ul>
	<% @member.characters.each do |character| %>
		<li>
		<%= character.name %>  <%= link_to 'Show', :controller => 'characters',
	 					  						   :action => 'show' ,
												   :id => character %> |
							   <%= link_to 'Edit', :controller => 'characters',
												   :action => 'edit',
												   :id => character %> |
							   <%= link_to 'Delete', :action => 'delete_character' ,  
												 	 :id => @member,
												     :character_id => character %>
		</li>						   
	<% end %>
	<%= link_to 'Create New Character', :action => 'new_character', :id => @member %>
</ul>

  <%= submit_tag 'Edit' %>
<%= end_form_tag %>

<%= link_to 'Show', :action => 'show', :id => @member %> |
<%= link_to 'Back', :action => 'list' %>
